package cn.getech.data.metadata.model.req.collectiontableinfo;

import cn.getech.data.intelligence.common.validator.group.AddGroup;
import cn.getech.data.intelligence.common.validator.group.UpdateGroup;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.List;

@ApiModel(description = "元数据修改请求")
@Data
public class CollectionTableInfoUpdateReq implements Serializable {
    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "元数据id")
    private List<Integer> ids;

    @ApiModelProperty(value = "id")
    private Integer id;

    @Deprecated
    private Integer ownSystem;
    @ApiModelProperty(value = "所属模块")
    @NotNull(message = "所属模块不能为空", groups = {AddGroup.class, UpdateGroup.class})
    private Integer ownModule;
}
